// 指定图表的配置项和数据
mainOption = {
    title: {
        text: '用户数量',
        subtext: '统计当前用户数量变化'
    },
    tooltip: {
        trigger: 'axis'
    },
    legend: {
        data: ['用户数','新增用户']
    },
    toolbox: {
        show: true,
        feature: {
            mark: {show: true},
            dataView: {show: true, readOnly: false},
            magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
            restore: {show: true},
            saveAsImage: {show: true}
        }
    },
    calculable: true,
    xAxis: [
        {
            type: 'category',
            boundaryGap: false,
            data: ['6分钟', '5分钟', '4分钟', '3分钟', '2分钟', '1分钟', '当前']
        }
    ],
    yAxis: [
        {
            type: 'value'
        }
    ],
    series: [

        {
            name: '用户数',
            type: 'line',
            smooth: true,
            itemStyle: {normal: {areaStyle: {type: 'default'}}},
            data: [10, 12, 21, 54, 260, 830, 1200]
        },
        {
            name: '新增用户',
            type: 'line',
            smooth: true,
            itemStyle: {normal: {areaStyle: {type: 'default'}}},
            data: [10, 2, 9, 33, 206, 570, 370]
        }
    ]
};
TweetOption = {
    title: {
        text: '推文数量',
        subtext: '统计当前Tweet数量变化'
    },
    tooltip: {
        trigger: 'axis'
    },
    legend: {
        data: ['推文总数','推文数量']
    },
    toolbox: {
        show: true,
        feature: {
            mark: {show: true},
            dataView: {show: true, readOnly: false},
            magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
            restore: {show: true},
            saveAsImage: {show: true}
        }
    },
    calculable: true,
    xAxis: [
        {
            type: 'category',
            boundaryGap: false,
            data: ['6分钟', '5分钟', '4分钟', '3分钟', '2分钟', '1分钟', '当前']
        }
    ],
    yAxis: [
        {
            type: 'value'
        }
    ],
    series: [
        {
            name: '推文总数',
            type: 'line',
            smooth: true,
            itemStyle: {normal: {areaStyle: {type: 'default'}}},
            data: [10, 12, 20, 60, 80, 120, 350]
        },
        {
            name: '推文数量',
            type: 'line',
            smooth: true,
            itemStyle: {normal: {areaStyle: {type: 'default'}}},
            data: [10, 12, 20, 60, 80, 120, 350]
        }
    ]
};